home *** CD-ROM | disk | FTP | other *** search
- Path: tudelft.nl!news
- From: Ejo Schrama <schrama@geo.tudelft.nl>
- Newsgroups: comp.lang.c++,comp.object,comp.object.logic
- Subject: Re: polymorphism
- Date: 21 Mar 1996 12:17:44 GMT
- Organization: TU Delft, Faculty of Geodetic Engineering
- Message-ID: <4irhd8$g1i@mo6.rc.tudelft.nl>
- References: <31513CBB.41C6@mi.leeds.ac.uk>
- NNTP-Posting-Host: dutgs7.geo.tudelft.nl
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.12 (X11; I; HP-UX A.09.05 9000/735)
- X-URL: news:31513CBB.41C6@mi.leeds.ac.uk
-
- aniko@mi.leeds.ac.uk (Aniko Simon) wrote:
- >Hi;
- >
- >Can anyone help:
- >what does the term "polymorphism" mean in OO programming ?
- >
-
- Yes, it means that a function, designed to work on a particular type
- of object (or objects) also works for inhereted objects. For example:
-
- change(world);
-
- where change is a function designed to work with world objects can
- also be used for venus objects:
-
- change(venus);
-
- where venus is inhereted from the base object world.
-
- Ejo
-
-